<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Post>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm())
       {
           if (!Model.ThreadReference.IsLoaded) Model.ThreadReference.Load();
           if (!Model.ForumReference.IsLoaded) Model.ForumReference.Load();
    %>
    <%:Html.AntiForgeryToken() %>
    <div style="margin-bottom: 5px; height: 30px;">
        <%:Ajax.ForumMapPath(Model.Forum.ID) %>
    </div>
    <div class="ui-corner-top ui-widget-content" style="margin-right: 5px;">
        <div class="ui-widget-header ui-corner-top ui-border-bottom" style="overflow: auto;">
            <h3 style="margin-left: 10px;">
                <%:Html.ActionLink(Html.Global("RES_DELETE") + ":" + Model.Title, "Index", "Thread", new { Area="Community",id=Model.Thread.ID},null)%></h3>
        </div>
        <table style="width: 100%" cellpadding="5" cellspacing="3">
            <tr>
                <td style="width: 100px;" align="right">
                    <%=Html.Global("RES_TITLE") %>:
                </td>
                <td>
                    <%=Model.Title%>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <%=Html.Global("forums","Message") %>:
                </td>
                <td>
                    <%=Html.FormatBBCode(Model.Body)%>
                </td>
            </tr>
            <tr>
                <td align="right" valign="top"><label for="DeleteReason">
                    <%=Html.Global("forums", "DeleteReason")%>:</label>
                </td>
                <td>
                    <%=Ajax.TextArea("DeleteReason") %>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <%=Ajax.CheckBox("KeepPost","Keep this post (Mark as delete)") %>
                </td>
            </tr>
        </table>
        <div id="MoveForumButton" style="padding: 5px; text-align: center;">
            <%=Ajax.Submit(Html.Global("RES_DELETE"), "ui-icon ui-icon-close")%>
        </div>
    </div>
    <%} %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
